<?php
namespace Asf\Http;

trait MakeupSwooleResponse
{
    public function makeupSwooleResponse($response)
    {
        $response->status($this->getStatusCode());

        foreach ($this->headers as $key=>$value) {
            $response->header($key, current($value));
        }

        return $this->getContent();
    }
}